﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Drawing;

namespace TERP.WaterClient.Common
{
    class LayoutStyle
    {
        private static LayoutStyle instance = null;
        
        public static LayoutStyle Instance { 
            get {
                if (instance == null)
                    instance = new LayoutStyle();
                return instance;
            }
        }

        private Hashtable _htbStyle;
        private string _strDefaultStyle;
        //
        private const string STYLE_LILIAN = "Lilian";
        private const string STYLE_CARAMEL = "Caramel";
        private const string STYLE_BLUE = "Blue";
        //
        public static System.Drawing.Font FONT_BOLD = new Font("Tahoma", 8.25F, FontStyle.Bold);
        public static System.Drawing.Font FONT_ERROR = new Font("Tahoma", 8.25F, FontStyle.Bold);
		//
		public static Color COLOR_ALTERNAVITE_ROW_BRG = Color.Gainsboro;
		//
		public static Color COLOR_GRID_COL_HEADER = Color.DimGray;

        private LayoutStyle()
        {
            _htbStyle = new Hashtable();
            _htbStyle.Add(STYLE_LILIAN, "Lilian");
            _htbStyle.Add(STYLE_CARAMEL, "Caramel");
            _htbStyle.Add(STYLE_BLUE, "Blue");
            //
            _strDefaultStyle = STYLE_LILIAN;
        }

        public string GetDefaultStyle(){
            return (string)_htbStyle[_strDefaultStyle];
        }

        public Hashtable GetHtbStyle(){
            return _htbStyle;
        }
    }
}
